import axios from '@u/request'
// 请求商品分类列表
const getCates = (params = {}) => axios.get('/cateLists', {params})
// 新增商品分类
const addCate = (params = {}) => axios.post('/addCate', params)
// 获取商品分类详情
const getCateDetail = (id:number) => axios.get(`/detail/${id}`)
// 修改商品分类
const updateCate = (params = {}) => axios.put('/updateCate', params)
export {
  getCates,
  addCate,
  getCateDetail,
  updateCate
}